package com.lawyer.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import com.lawyer.entity.Documents;

@RepositoryRestResource(path = "Documents", collectionResourceRel = "Documents")
public interface DocumentsRepository extends PagingAndSortingRepository<Documents, Long>, JpaSpecificationExecutor<Documents> {
	
	List<Documents> findByUserId(String userId);
	
	List<Documents> findByAcceptLawyerId(String acceptLawyerId);
}
